package com.xmy.cultivate.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * <p>
 * 组织部门
 * </p>
 *
 * @author hpiggy
 * @since 2025-04-28
 */
@Data
@TableName("organization_department")
@ApiModel(value = "OrganizationDepartment对象", description = "组织部门")
public class OrganizationDepartment implements Serializable {

    private static final long serialVersionUID = 1L;

    private Long id;

    @ApiModelProperty("校区id")
    private Long schoolId;

    @ApiModelProperty("部门id")
    private Long departmentId;

    @ApiModelProperty("部门名称")
    private String departmentName;

    @ApiModelProperty("正常")
    private Integer status;

    @ApiModelProperty("是否负责人，1是，0否")
    private Integer isPrincipal;

    @TableField(exist = false)
    @ApiModelProperty("校区id")
    private String schoolName;

    @TableField(fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createdAt;


}
